<?php

use Biz\service\trade\Pay;

class MiniProgramAction extends CallBackActionPlugin
{
    public function main()
    {
        $callBackData = file_get_contents('php://input');
        Pay::payCallBack($callBackData, Pay::_PAY_WAYS_MINIPROGRAM);
        $this->setSuccessWithText('<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>');
    }
}